﻿package mortal.game.view.test
{
    import Framework.MQ.*;
    import Message.Command.*;
    import Message.DB.Tables.*;
    import Message.Game.*;
    import Message.Public.*;
    import baseEngine.modifiers.*;
    import baseEngine.system.*;
    import com.gengine.core.frame.*;
    import com.gengine.debug.*;
    import com.gengine.global.*;
    import com.gengine.resource.*;
    import com.gengine.utils.*;
    import com.mui.containers.*;
    import com.mui.containers.globalVariable.*;
    import com.mui.controls.*;
    import com.mui.display.*;
    import com.mui.events.*;
    import extend.language.*;
    import extend.php.*;
    import fl.controls.*;
    import fl.data.*;
    import flash.display.*;
    import flash.events.*;
    import flash.text.*;
    import flash.utils.*;
    import frEngine.manager.*;
    import frEngine.postProcess.*;
    import frEngine.render.layer.uiEffectLayer.*;
    import mortal.common.*;
    import mortal.common.global.*;
    import mortal.common.tools.*;
    import mortal.component.window.*;
    import mortal.game.*;
    import mortal.game.cache.*;
    import mortal.game.events.*;
    import mortal.game.manager.*;
    import mortal.game.mvc.*;
    import mortal.game.net.broadCast.*;
    import mortal.game.net.rmi.*;
    import mortal.game.resource.*;
    import mortal.game.resource.info.item.*;
    import mortal.game.resource.tableConfig.*;
    import mortal.game.scene3D.display3d.text3d.staticText3d.*;
    import mortal.game.scene3D.display3d.text3d.staticText3d.action.*;
    import mortal.game.scene3D.fight.*;
    import mortal.game.scene3D.layer3D.utils.*;
    import mortal.game.scene3D.map3D.*;
    import mortal.game.scene3D.map3D.AstarAnyDirection.*;
    import mortal.game.scene3D.model.player.*;
    import mortal.game.scene3D.model.pools.*;
    import mortal.game.scene3D.player.entity.*;
    import mortal.game.utils.*;
    import mortal.game.view.changeCareer.*;
    import mortal.game.view.common.*;
    import mortal.game.view.common.cd.*;
    import mortal.game.view.common.display.*;
    import mortal.game.view.common.guide.data.*;
    import mortal.game.view.copy.crossMainCity.panels.*;
    import mortal.game.view.copy.uniqueBoss.view.*;
    import mortal.game.view.guide.*;
    import mortal.game.view.interfaceCallModule.*;
    import mortal.game.view.lotteryDraw.*;
    import mortal.game.view.mainUI.avatar.*;
    import mortal.game.view.npc.*;
    import mortal.game.view.skill.skillEquipTarget.*;
    import mortal.game.view.systemSetting.*;
    import mortal.game.view.task.drama.*;
    import mortal.game.view.task.drama.operations.*;
    import mortal.game.view.wizard.*;
    import mortal.mvc.core.*;

    public class TestPanel extends BaseWindow
    {
        private var _scrollPane:GScrollPane;
        private var _testTabData:Array;
        private var _tabBar:GTabarNew;
        private var _pageArray:Array;
        private var _zujians:Array;
        private var _interfaceCallModule:InterfaceCallModule;
        private var _uiPanel:UITrackPanel;
        private var _isChecking:Boolean = false;
        private var _totalCutNum:int = 1;
        private var _taskAutoDialog:NpcTaskAutoDialogModule;
        private var _npcTalk:TaskDramaOpTalk;
        private var _talkId:int = 1;
        private var _dramaSteper:TaskDramaOperator;
        private var _dramaStep:int = 3;
        private var _baseY:int = 68;
        private var _rightX:int = 439;
        private var _leftX:Number = 20;
        public static var isPath:Boolean = false;

        public function TestPanel()
        {
            this._zujians = [];
            this._taskAutoDialog = new NpcTaskAutoDialogModule();
            this._npcTalk = new TaskDramaOpTalk();
            this._dramaSteper = new TaskDramaOperator();
            setSize(900, 600);
            titleHeight = 35;
            return;
        }// end function

        private function addButton(param1:String, param2:DisplayObjectContainer, param3:Number = 60) : GButton
        {
            var _loc_4:* = UIFactory.gButton(param1, 0, 0, param3, 22, param2);
            return _loc_4;
        }// end function

        private function addCheckBox(param1:String, param2:DisplayObjectContainer, param3:Function) : GCheckBox
        {
            var _loc_4:* = UIFactory.checkBox(param1, 0, 0, 150, 25, param2);
            _loc_4.addEventListener(Event.CHANGE, param3);
            return _loc_4;
        }// end function

        private function addTextInput(param1:DisplayObjectContainer, param2:Number = 60) : GTextInput
        {
            var _loc_3:* = UIFactory.gTextInput(0, 0, param2, 20, param1);
            return _loc_3;
        }// end function

        private function addTextFiled(param1:String, param2:DisplayObjectContainer, param3:Number = 80) : TextField
        {
            return UIFactory.textField(param1, 0, 0, param3, 20, param2);
        }// end function

        override protected function configUI() : void
        {
            var _loc_3:Sprite = null;
            super.configUI();
            var _loc_1:* = UIFactory.bg(17, 60, 868, 520, this);
            this._testTabData = Language.getArray(90000);
            var _loc_2:* = this._testTabData.length;
            this._tabBar = UIFactory.gTabBarNew(0, 32, this._testTabData, 900, 600, 65, 26, this, this.tabBarChangeHandler, "TabButtonNew");
            this._tabBar.selectedIndex = 0;
            this._pageArray = [];
            var _loc_4:int = 0;
            while (_loc_4 < _loc_2)
            {
                
                _loc_3 = new Sprite();
                this._pageArray[_loc_4] = {sprite:_loc_3, leftY:0, rightY:0};
                this.addChild(_loc_3);
                _loc_4++;
            }
            this.addBoss();
            this.addRelive();
            this.addMapPass();
            this.addMapJump();
            this.addMoney();
            this.addLevel();
            this.addChangeMountTime();
            this.addCamp();
            this.addPet();
            this.addSprite();
            this.addSceen();
            this.addGuildData();
            this.addTestMemory();
            this.addDebugWin();
            this.addRecharge();
            this.addInvest();
            this.addLotteryDraw();
            this.addChallengeCopy();
            this.addTowerCopy();
            this.addIsDebug();
            this.addItem();
            this.addItemByName();
            this.addEmptyItem();
            this.addSkill();
            this.testSystemSetting();
            this.addOnlineTime();
            this.addShortcut();
            this.addBuff();
            this.addLife();
            this.addExp();
            this.addCopy();
            this.addClearBoss();
            this.addRune();
            this.addTask();
            this.addIssm();
            this.addChangePet();
            this.addPetBreakChange();
            this.addPetLifespan();
            this.addFlyEffect();
            this.addChangeSpeed();
            this.addAdvanceSystem();
            this.addStrenge();
            this.addLineOffNextDay();
            this.addCheckCordinate();
            this.addTowerChange();
            this.addOpenOrClose3D();
            this.addBossAllotTest();
            this.addClearSpeaker();
            this.addTestCameraAngle();
            this.addAccount();
            this.addEnterCrossMap();
            this.addFrameTest();
            this.addYanwu();
            this.updatePanel();
            return;
        }// end function

        private function tabBarChangeHandler(event:MuiEvent = null) : void
        {
            this.updatePanel();
            return;
        }// end function

        public function updatePanel() : void
        {
            var _loc_1:int = 0;
            while (_loc_1 < this._pageArray.length)
            {
                
                if (this._tabBar.selectedIndex == _loc_1)
                {
                    this._pageArray[_loc_1]["sprite"].visible = true;
                }
                else
                {
                    this._pageArray[_loc_1]["sprite"].visible = false;
                }
                _loc_1++;
            }
            return;
        }// end function

        private function addTask() : void
        {
            var textInput:GTextInput;
            var completeHandler:Function;
            var endHandler:Function;
            var getHandler:Function;
            completeHandler = function (event:MouseEvent) : void
            {
                var _loc_2:* = int(textInput.text);
                GameRMI.instance.iTestPrx.completeTask_async(new AMI_ITest_completeTask(), _loc_2);
                return;
            }// end function
            ;
            endHandler = function (event:MouseEvent) : void
            {
                var _loc_2:* = int(textInput.text);
                GameRMI.instance.iTestPrx.endTask_async(new AMI_ITest_endTask(), _loc_2);
                return;
            }// end function
            ;
            getHandler = function (event:MouseEvent) : void
            {
                var _loc_2:* = int(textInput.text);
                GameRMI.instance.iTestPrx.getTask_async(new AMI_ITest_getTask(), _loc_2);
                return;
            }// end function
            ;
            var box:* = this.addRightBox();
            this.addTextFiled("任务Id：", box, 80);
            textInput = this.addTextInput(box, 100);
            var btn:* = this.addButton("完成任务", box);
            var btn2:* = this.addButton("提交任务", box);
            var btn3:* = this.addButton("接取任务", box);
            btn.addEventListener(MouseEvent.CLICK, completeHandler);
            btn2.addEventListener(MouseEvent.CLICK, endHandler);
            btn3.addEventListener(MouseEvent.CLICK, getHandler);
            return;
        }// end function

        private function addRune() : void
        {
            var textInput:GTextInput;
            var activeHandler:Function;
            var upgradeHandler:Function;
            activeHandler = function (event:MouseEvent) : void
            {
                var _loc_2:* = int(textInput.text);
                GameProxy.role.activeRune(_loc_2);
                return;
            }// end function
            ;
            upgradeHandler = function (event:MouseEvent) : void
            {
                var _loc_2:* = int(textInput.text);
                GameProxy.role.upgradeRune(_loc_2);
                return;
            }// end function
            ;
            var box:* = this.addRightBox();
            this.addTextFiled("符文Id：", box, 80);
            textInput = this.addTextInput(box, 100);
            var btn:* = this.addButton("激活符文", box);
            var btn2:* = this.addButton("升级符文", box);
            btn.addEventListener(MouseEvent.CLICK, activeHandler);
            btn2.addEventListener(MouseEvent.CLICK, upgradeHandler);
            return;
        }// end function

        private function addBoss() : void
        {
            var textInput:GTextInput;
            var addBossHandler:Function;
            var textInput2:GTextInput;
            var changeWorldLevelHandler:Function;
            addBossHandler = function () : void
            {
                GameRMI.instance.iTestPrx.createBoss_async(new AMI_ITest_createBoss(), int(textInput.text));
                return;
            }// end function
            ;
            changeWorldLevelHandler = function () : void
            {
                GameRMI.instance.iTestPrx.setWorldLevel_async(new AMI_ITest_setWorldLevel(), int(textInput2.text));
                return;
            }// end function
            ;
            var box:* = this.addLeftBox();
            this.addTextFiled("刷怪：", box, 40);
            textInput = this.addTextInput(box, 100);
            textInput.text = "10000000";
            var btn:* = this.addButton("刷怪", box);
            btn.addEventListener(MouseEvent.CLICK, addBossHandler);
            this.addTextFiled("世界等级：", box, 50);
            textInput2 = this.addTextInput(box, 60);
            textInput2.text = "60";
            var btn2:* = this.addButton("修改", box);
            btn2.addEventListener(MouseEvent.CLICK, changeWorldLevelHandler);
            return;
        }// end function

        private function addItem() : void
        {
            var textInput:GTextInput;
            var textInput2:GTextInput;
            var addBossHandler:Function;
            addBossHandler = function () : void
            {
                GameRMI.instance.iTestPrx.addItem_async(new AMI_ITest_addItem(), int(textInput.text), int(textInput2.text));
                return;
            }// end function
            ;
            var box:* = this.addRightBox();
            this.addTextFiled("物品Code：", box, 80);
            textInput = this.addTextInput(box, 100);
            textInput.text = "180131001";
            this.addTextFiled("数量：", box, 40);
            textInput2 = this.addTextInput(box, 100);
            textInput2.text = "1";
            var btn:* = this.addButton("添加", box);
            btn.addEventListener(MouseEvent.CLICK, addBossHandler);
            return;
        }// end function

        private function addItemByName() : void
        {
            var _txtSearch:TextInputList;
            var textInput2:GTextInput;
            var textInput3:GTextInput;
            var onSearchTxtChange:Function;
            var addItemHandler:Function;
            var getIdHandler:Function;
            onSearchTxtChange = function () : void
            {
                if (_txtSearch._textInput.text.length >= 2)
                {
                    _txtSearch.updateDataProvider(getTxtListDp(_txtSearch._textInput.text));
                }
                return;
            }// end function
            ;
            var getTxtListDp:* = function (param1:String) : DataProvider
            {
                var _loc_4:ItemInfo = null;
                var _loc_2:* = ItemConfig.instance.getAllMap();
                var _loc_3:Array = [];
                for each (_loc_4 in _loc_2)
                {
                    
                    if (String(_loc_4.name).indexOf(param1) == -1)
                    {
                        continue;
                    }
                    _loc_3.push(_loc_4);
                }
                return new DataProvider(_loc_3);
            }// end function
            ;
            addItemHandler = function () : void
            {
                GameRMI.instance.iTestPrx.addItem_async(new AMI_ITest_addItem(), int(textInput2.text), int(textInput3.text));
                return;
            }// end function
            ;
            getIdHandler = function (event:Event = null) : void
            {
                var _loc_2:ItemInfo = null;
                var _loc_3:int = 0;
                if (_txtSearch.selectdata)
                {
                    _loc_2 = _txtSearch.selectdata as ItemInfo;
                    if (_loc_2)
                    {
                        _loc_3 = _loc_2.code;
                        textInput2.text = _loc_3.toString();
                    }
                    else
                    {
                        return MsgManager.showRollTipsMsg("物品不存在");
                    }
                }
                return;
            }// end function
            ;
            var box:* = this.addRightBox();
            this.addTextFiled("物品名字：", box, 80);
            _txtSearch = new TextInputList();
            _txtSearch._textInput.width = 120;
            _txtSearch.init(onSearchTxtChange);
            _txtSearch.addEventListener(Event.SELECT, getIdHandler);
            box.addChild(_txtSearch);
            var btn2:* = this.addButton("获取Id", box);
            btn2.addEventListener(MouseEvent.CLICK, getIdHandler);
            textInput2 = this.addTextInput(box, 80);
            textInput2.text = "";
            textInput3 = this.addTextInput(box, 20);
            textInput3.text = "1";
            var btn:* = this.addButton("添加", box);
            btn.addEventListener(MouseEvent.CLICK, addItemHandler);
            return;
        }// end function

        private function addEmptyItem() : void
        {
            var textInput:GTextInput;
            var openChallenge:Function;
            var addBossHandler:Function;
            var openBlackMarket:Function;
            openChallenge = function () : void
            {
                Dispatcher.dispatchEvent(new DataEvent(EventName.NPC_OpenNpcShop, int(textInput.text)));
                return;
            }// end function
            ;
            addBossHandler = function () : void
            {
                GameRMI.instance.iTestPrx.emptyBag_async(new AMI_ITest_emptyBag(), EPlayerItemPosType._EPlayerItemPosTypeBag);
                return;
            }// end function
            ;
            openBlackMarket = function () : void
            {
                Dispatcher.dispatchEvent(new DataEvent(EventName.BlckMarketOpen, null));
                return;
            }// end function
            ;
            var box:* = this.addRightBox();
            this.addTextFiled("一键清空背包", box, 80);
            var btn:* = this.addButton("清空", box);
            btn.addEventListener(MouseEvent.CLICK, addBossHandler);
            this.addTextFiled("商店Code", box, 80);
            textInput = this.addTextInput(box, 80);
            textInput.text = "9000";
            var btn2:* = this.addButton("打开", box);
            btn2.addEventListener(MouseEvent.CLICK, openChallenge);
            var btn3:* = this.addButton("黑市", box);
            btn3.addEventListener(MouseEvent.CLICK, openBlackMarket);
            return;
        }// end function

        private function addIsDebug() : void
        {
            var aa:Object;
            var passLevel:Function;
            passLevel = function (event:MouseEvent) : void
            {
                return;
            }// end function
            ;
            var box:* = this.addLeftBox(1);
            this.addTextFiled("点击报错即debug", box, 90);
            var btn:* = this.addButton("进入副本", box);
            btn.addEventListener(MouseEvent.CLICK, passLevel);
            return;
        }// end function

        private function addTowerCopy() : void
        {
            var textInput1:GTextInput;
            var btn:Button;
            var btn2:Button;
            var btn3:Button;
            var btn4:Button;
            var passLevel:Function;
            passLevel = function (event:MouseEvent) : void
            {
                if (event.target == btn)
                {
                    GameRMI.instance.iCopy.enterTowerCopy4_async(new AMI_ICopy_enterTowerCopy4(), 146, int(textInput1.text));
                }
                else if (event.target == btn2)
                {
                    GameRMI.instance.iCopy.goToTowerCopy4Level_async(new AMI_ICopy_goToTowerCopy4Level(), 146, int(textInput1.text));
                }
                else if (event.target == btn3)
                {
                    GameRMI.instance.iCopy.getTowerCopy4FirstRewards_async(new AMI_ICopy_getTowerCopy4FirstRewards(), 146, int(textInput1.text));
                }
                else if (event.target == btn4)
                {
                    GameRMI.instance.iCopy.getTowerCopy4FirstRewardGetInfo_async(new AMI_ICopy_getTowerCopy4FirstRewardGetInfo(), 146);
                }
                return;
            }// end function
            ;
            var box:* = this.addLeftBox(1);
            this.addTextFiled("爬塔副本", box, 70);
            this.addTextFiled("等级", box, 28);
            textInput1 = this.addTextInput(box, 40);
            textInput1.text = "1";
            btn = this.addButton("进入副本", box);
            btn.addEventListener(MouseEvent.CLICK, passLevel);
            btn2 = this.addButton("下级副本", box);
            btn2.addEventListener(MouseEvent.CLICK, passLevel);
            btn3 = this.addButton("领取奖励", box);
            btn3.addEventListener(MouseEvent.CLICK, passLevel);
            btn4 = this.addButton("获取领奖情况", box);
            btn4.addEventListener(MouseEvent.CLICK, passLevel);
            return;
        }// end function

        private function addChallengeCopy() : void
        {
            var textInput1:GTextInput;
            var textInput2:GTextInput;
            var textInput3:GTextInput;
            var passLevel:Function;
            passLevel = function () : void
            {
                GameRMI.instance.iTestPrx.setChallenge_async(new AMI_ITest_setChallenge(), int(textInput1.text), int(textInput2.text), int(textInput3.text));
                return;
            }// end function
            ;
            var box:* = this.addLeftBox(1);
            this.addTextFiled("英雄远征通关数", box, 90);
            textInput1 = this.addTextInput(box, 40);
            textInput1.text = "1";
            this.addTextFiled("章节", box, 30);
            textInput2 = this.addTextInput(box, 40);
            textInput2.text = "1";
            this.addTextFiled("关卡", box, 30);
            textInput3 = this.addTextInput(box, 40);
            textInput3.text = "1";
            var btn:* = this.addButton("确定", box);
            btn.addEventListener(MouseEvent.CLICK, passLevel);
            return;
        }// end function

        private function addInvest() : void
        {
            var cb:GComboBox;
            var info:TInvestBase;
            var textInput:GTextInput;
            var btn:Button;
            var changeDays:Function;
            changeDays = function (event:MouseEvent) : void
            {
                var _loc_2:* = cb.selectedItem["type"];
                GameRMI.instance.iTestPrx.changeInvestDay_async(new AMI_ITest_changeInvestDay(), _loc_2, int(textInput.text));
                return;
            }// end function
            ;
            var box:* = this.addLeftBox();
            this.addTextFiled("投资类型", box, 80);
            cb = UIFactory.gComboBox(100, 70, 80, 22);
            cb.editable = false;
            cb.addItem({label:"7天投资", type:0});
            var dic:* = MonthInvestmentConfig.instance.investDic;
            var _loc_2:int = 0;
            var _loc_3:* = dic;
            while (_loc_3 in _loc_2)
            {
                
                info = _loc_3[_loc_2];
                cb.addItem({label:info.name, type:info.type});
            }
            box.addChild(cb);
            cb.drawNow();
            this.addTextFiled("当前天数", box, 60);
            textInput = this.addTextInput(box, 30);
            textInput.text = "2";
            btn = this.addButton("确定", box);
            btn.addEventListener(MouseEvent.CLICK, changeDays);
            return;
        }// end function

        private function addLotteryDraw() : void
        {
            var cb:GComboBox;
            var doLotteryDraw:Function;
            var openLotteryDrawPackage:Function;
            var openLotteryDrawView:Function;
            var ShowPool:Function;
            doLotteryDraw = function (event:MouseEvent) : void
            {
                var _loc_2:int = 0;
                if (cb.selectedItem.hasOwnProperty("times"))
                {
                    _loc_2 = cb.selectedItem["times"];
                    Dispatcher.dispatchEvent(new DataEvent(EventName.LotteryDrawPlay, {times:_loc_2, level:70}));
                }
                return;
            }// end function
            ;
            openLotteryDrawPackage = function (event:MouseEvent) : void
            {
                lotteryDrawDiamondWin.instance.show();
                return;
            }// end function
            ;
            openLotteryDrawView = function (event:MouseEvent) : void
            {
                Dispatcher.dispatchEvent(new DataEvent(EventName.LotteryDrawShow));
                return;
            }// end function
            ;
            ShowPool = function (event:MouseEvent) : void
            {
                Cache.instance.lotteryDraw.isShowTestPool = !Cache.instance.lotteryDraw.isShowTestPool;
                Dispatcher.dispatchEvent(new Event(EventName.LotteryDrawTestPool));
                return;
            }// end function
            ;
            var box:* = this.addLeftBox();
            this.addTextFiled("开箱子抽奖", box, 80);
            cb = UIFactory.gComboBox(100, 70, 80, 22);
            cb.editable = false;
            cb.addItem({label:"抽奖1次", times:1});
            cb.addItem({label:"抽奖10次", times:10});
            cb.addItem({label:"抽奖50次", times:50});
            box.addChild(cb);
            cb.drawNow();
            var btn1:* = this.addButton("确定", box);
            btn1.addEventListener(MouseEvent.CLICK, doLotteryDraw);
            var btn3:* = this.addButton("抽奖特效", box);
            btn3.addEventListener(MouseEvent.CLICK, openLotteryDrawPackage);
            var btn4:* = this.addButton("抽奖记录", box);
            btn4.addEventListener(MouseEvent.CLICK, openLotteryDrawView);
            var btn5:* = this.addButton("显示后备奖池", box);
            btn5.addEventListener(MouseEvent.CLICK, ShowPool);
            return;
        }// end function

        private function addSprite() : void
        {
            var addSpriteHandler:Function;
            var addSpriteHandler2:Function;
            var addSpriteHandler3:Function;
            var addSpriteHandler4:Function;
            addSpriteHandler = function (event:MouseEvent) : void
            {
                var _loc_2:Array = null;
                for each (_loc_2 in WizardConfig.instance.wizardUpArr)
                {
                    
                    GameRMI.instance.iTestPrx.addItem_async(new AMI_ITest_addItem(), (_loc_2[1] as TSprite).activepropId, 10);
                }
                return;
            }// end function
            ;
            addSpriteHandler2 = function (event:MouseEvent) : void
            {
                GameRMI.instance.iTestPrx.addRobot_async(new AMI_ITest_addRobot());
                return;
            }// end function
            ;
            addSpriteHandler3 = function (event:MouseEvent) : void
            {
                if (stage.displayState != StageDisplayState.FULL_SCREEN)
                {
                    stage.displayState = StageDisplayState.FULL_SCREEN;
                }
                else
                {
                    stage.displayState = StageDisplayState.NORMAL;
                }
                return;
            }// end function
            ;
            addSpriteHandler4 = function (event:MouseEvent) : void
            {
                if (stage.displayState != StageDisplayState.FULL_SCREEN_INTERACTIVE)
                {
                    stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
                }
                else
                {
                    stage.displayState = StageDisplayState.NORMAL;
                }
                return;
            }// end function
            ;
            var box:* = this.addLeftBox();
            var btn:* = this.addButton("一键添加所有精灵", box, 120);
            btn.addEventListener(MouseEvent.CLICK, addSpriteHandler);
            var btn2:* = this.addButton("添加机器人", box, 120);
            btn2.addEventListener(MouseEvent.CLICK, addSpriteHandler2);
            var btn3:* = this.addButton("全屏1", box, 60);
            btn3.addEventListener(MouseEvent.CLICK, addSpriteHandler3);
            var btn4:* = this.addButton("全屏2", box, 60);
            btn4.addEventListener(MouseEvent.CLICK, addSpriteHandler4);
            return;
        }// end function

        private function addIssm() : void
        {
            var cb:GComboBox;
            var addHandler:Function;
            addHandler = function () : void
            {
                GameProxy.player.changeIssm(cb.selectedItem.type);
                return;
            }// end function
            ;
            var box:* = this.addRightBox();
            this.addTextFiled("防沉迷：", box);
            cb = UIFactory.gComboBox(0, 0, 80, 22);
            cb.editable = false;
            cb.addItem({label:"未验证", type:EIssm._EIssmNotPass});
            cb.addItem({label:"成年", type:EIssm._EIssmAdult});
            cb.addItem({label:"未成年", type:EIssm._EIssmUnAdult});
            box.addChild(cb);
            cb.selectedIndex = 0;
            cb.drawNow();
            var btn:* = this.addButton("确定", box);
            btn.addEventListener(MouseEvent.CLICK, addHandler);
            return;
        }// end function

        private function addPetBreakChange() : void
        {
            var textInput:GTextInput;
            var onClick:Function;
            onClick = function (event:MouseEvent) : void
            {
                GameRMI.instance.iTestPrx.setPetBreakStar_async(new AMI_ITest_setPetBreakStar(), int(textInput.text));
                return;
            }// end function
            ;
            var box:* = this.addRightBox();
            this.addTextFiled("宠物闯关层数：", box, 80);
            textInput = this.addTextInput(box, 100);
            var btn:* = this.addButton("跳层", box);
            btn.addEventListener(MouseEvent.CLICK, onClick);
            return;
        }// end function

        private function addPetLifespan() : void
        {
            var textInput:GTextInput;
            var onClick:Function;
            onClick = function (event:MouseEvent) : void
            {
                var _loc_2:* = Cache.instance.pet.fightPetUid;
                if (_loc_2 == "")
                {
                    MsgManager.showRollTipsMsg("请先出战宠物");
                    return;
                }
                GameRMI.instance.iTestPrx.setPetLifespan_async(new AMI_ITest_setPetLifespan(), _loc_2, int(textInput.text));
                return;
            }// end function
            ;
            var box:* = this.addRightBox();
            this.addTextFiled("宠物寿命：", box, 80);
            textInput = this.addTextInput(box, 100);
            var btn:* = this.addButton("修改", box);
            btn.addEventListener(MouseEvent.CLICK, onClick);
            return;
        }// end function

        private function addChangePet() : void
        {
            var textInput:GTextInput;
            var textInput2:GTextInput;
            var addBossHandler:Function;
            addBossHandler = function () : void
            {
                var _loc_3:int = 0;
                var _loc_4:int = 0;
                var _loc_1:* = Cache.instance.pet.fightPetUid;
                var _loc_2:* = Cache.instance.pet.getSpetByUid(_loc_1);
                if (_loc_2)
                {
                    _loc_3 = int(textInput.text) == 0 ? (_loc_2.publicPet.growthMax) : (int(textInput.text));
                    _loc_4 = int(textInput2.text) == 0 ? (_loc_2.publicPet.talent) : (int(textInput2.text));
                    GameRMI.instance.iTestPrx.updatePet_async(new AMI_ITest_updatePet(), _loc_1, _loc_3, _loc_4);
                }
                else
                {
                    MsgManager.showRollTipsMsg("请先出战宠物");
                }
                return;
            }// end function
            ;
            var box:* = this.addRightBox();
            this.addTextFiled("宠物成长", box, 80);
            textInput = this.addTextInput(box, 100);
            this.addTextFiled("资质", box, 40);
            textInput2 = this.addTextInput(box, 100);
            var btn:* = this.addButton("修改", box);
            btn.addEventListener(MouseEvent.CLICK, addBossHandler);
            return;
        }// end function

        private function addGuildData() : void
        {
            var cb:GComboBox;
            var textInput:GTextInput;
            var addHandler:Function;
            addHandler = function () : void
            {
                GameRMI.instance.iTestPrx.changeGuildData_async(new AMI_ITest_changeGuildData(), cb.selectedItem["type"], int(textInput.text));
                return;
            }// end function
            ;
            var box:* = this.addLeftBox();
            cb = UIFactory.gComboBox(120, 70, 100, 22);
            cb.editable = false;
            cb.addItem({label:"公会资源", type:1});
            cb.addItem({label:"公会资金", type:2});
            cb.addItem({label:"玩家今日贡献", type:3});
            cb.addItem({label:"玩家本周贡献", type:4});
            cb.addItem({label:"玩家总贡献", type:5});
            cb.addItem({label:"玩家当前贡献", type:6});
            cb.addItem({label:"玩家活跃度", type:7});
            cb.addItem({label:"玩家累存资源", type:8});
            cb.addItem({label:"公会繁荣度", type:9});
            box.addChild(cb);
            cb.drawNow();
            textInput = this.addTextInput(box, 80);
            textInput.text = "";
            var btn:* = this.addButton("添加", box);
            btn.addEventListener(MouseEvent.CLICK, addHandler);
            return;
        }// end function

        private function addTestMemory() : void
        {
            var onClickBtnxx:Function;
            var onClickBtnxxx:Function;
            var onClickBtnxxx2:Function;
            onClickBtnxx = function (event:MouseEvent) : void
            {
                var _loc_2:int = 0;
                var _loc_3:BitmapNumberText = null;
                if (_zujians.length > 0)
                {
                    _loc_2 = 0;
                    while (_loc_2 < _zujians.length)
                    {
                        
                        BitmapNumberText(_zujians[_loc_2]).dispose(true);
                        _loc_2++;
                    }
                }
                _zujians = [];
                _loc_2 = 0;
                while (_loc_2 < 100)
                {
                    
                    _loc_3 = UIFactory.bitmapNumberText(0, 0, "EquipmentTipsNumber.png", 16, 16, -5);
                    _loc_3.text = "1234324323422";
                    _zujians.push(_loc_3);
                    _loc_2++;
                }
                return;
            }// end function
            ;
            onClickBtnxxx = function (event:MouseEvent) : void
            {
                if (!_interfaceCallModule)
                {
                    _interfaceCallModule = new InterfaceCallModule();
                }
                _interfaceCallModule.show();
                return;
            }// end function
            ;
            onClickBtnxxx2 = function (event:MouseEvent) : void
            {
                if (!_uiPanel)
                {
                    _uiPanel = new UITrackPanel();
                }
                _uiPanel.show();
                return;
            }// end function
            ;
            var box:* = this.addLeftBox();
            var btn1:* = this.addButton("测试组件内存", box);
            btn1.addEventListener(MouseEvent.CLICK, onClickBtnxx);
            var btn2:* = this.addButton("查看接口调用", box, 90);
            btn2.addEventListener(MouseEvent.CLICK, onClickBtnxxx);
            var btn3:* = this.addButton("查看组件调用", box, 90);
            btn3.addEventListener(MouseEvent.CLICK, onClickBtnxxx2);
            return;
        }// end function

        private function addDebugWin() : void
        {
            var checkBox1:GCheckBox;
            var checkBox2:GCheckBox;
            var checkBox3:GCheckBox;
            var onCheckBox1:Function;
            var onCheckBox2:Function;
            var onCheckBox3:Function;
            onCheckBox1 = function (event:Event) : void
            {
                DebugConst.isOutPutMove = checkBox1.selected;
                return;
            }// end function
            ;
            onCheckBox2 = function (event:Event) : void
            {
                DebugConst.isOutPutAddEntity = checkBox2.selected;
                return;
            }// end function
            ;
            onCheckBox3 = function (event:Event) : void
            {
                DebugConst.isOutPutChangeAction = checkBox3.selected;
                return;
            }// end function
            ;
            var box:* = this.addLeftBox();
            checkBox1 = this.addCheckBox("打印实体移动消息", box, onCheckBox1);
            checkBox2 = this.addCheckBox("打印实体添加删除消息", box, onCheckBox2);
            checkBox3 = this.addCheckBox("打印动作", box, onCheckBox3);
            return;
        }// end function

        private function addCheckCordinate() : void
        {
            var btn1:Button;
            var textInput1:GTextInput;
            var textInput2:GTextInput;
            var onClickBtn:Function;
            var msgGot:Function;
            onClickBtn = function (param1) : void
            {
                if (_isChecking)
                {
                    return;
                }
                var _loc_2:* = param1.currentTarget as Button;
                _isChecking = true;
                NetDispatcher.addCmdListener(EPublicCommand._ECmdPublicCheckCoordinate, msgGot);
                var _loc_3:* = ThingUtil.selectEntity;
                if (_loc_2 == btn1 || _loc_3 == null || _loc_3 is NPCPlayer)
                {
                    _loc_3 = RolePlayer.instance;
                }
                GameRMI.instance.iTestPrx.checkCoordinate_async(new AMI_ITest_checkCoordinate(), _loc_3.entityInfo.entityInfo.entityId);
                return;
            }// end function
            ;
            msgGot = function (param1:MessageBlock) : void
            {
                _isChecking = false;
                NetDispatcher.removeCmdListener(EPublicCommand._ECmdPublicCheckCoordinate, msgGot);
                var _loc_2:* = param1.messageBase as SPoint;
                textInput1.text = _loc_2.x.toString();
                textInput2.text = _loc_2.y.toString();
                return;
            }// end function
            ;
            var box:* = this.addLeftBox(1);
            btn1 = this.addButton("我的坐标", box);
            var btn2:* = this.addButton("选中的坐标", box);
            textInput1 = this.addTextInput(box, 80);
            textInput2 = this.addTextInput(box, 80);
            btn1.addEventListener(MouseEvent.CLICK, onClickBtn);
            btn2.addEventListener(MouseEvent.CLICK, onClickBtn);
            return;
        }// end function

        private function addSceen() : void
        {
            var btn1:Button;
            var btn2:Button;
            var btn3:Button;
            var btn4:Button;
            var btn5:Button;
            var btn6:Button;
            var btn7:Button;
            var btn8:Button;
            var btn9:Button;
            var btn10:Button;
            var btn11:Button;
            var btn12:Button;
            var btn13:Button;
            var btn14:Button;
            var btn15:Button;
            var btn16:Button;
            var btn17:Button;
            var callBack:Function;
            var onClickBtn:Function;
            callBack = function (param1:String) : void
            {
                Alert.show(param1.toString());
                return;
            }// end function
            ;
            onClickBtn = function (event:MouseEvent) : void
            {
                var _loc_3:EffectPlayer = null;
                var _loc_4:ActionVo = null;
                var _loc_2:* = event.currentTarget as Button;
                switch(_loc_2)
                {
                    case btn1:
                    {
                        PHPGetter.getUrlValue("http://14.18.239.5/fbdl/game/api/buy.php", callBack);
                        break;
                    }
                    case btn2:
                    {
                        GameController.battlefield.showEndContinueCut();
                        break;
                    }
                    case btn3:
                    {
                        Game.scene.tweenScrollRect(1000, 1000);
                        break;
                    }
                    case btn4:
                    {
                        Game.scene.stopTweenScrollRect();
                        break;
                    }
                    case btn5:
                    {
                        LayerManager.entityTalkLayer.addTalk(RolePlayer.instance, "/1我就说句话而已，不要介意噢/b1");
                        break;
                    }
                    case btn6:
                    {
                        GuideEffect.showAutoFightStatus();
                        break;
                    }
                    case btn7:
                    {
                        GameUtil.gotoQQActiveRePay(2);
                    }
                    case btn8:
                    {
                        SkillEffectUtil.addDramaEffect(12001);
                        _loc_3 = EffectPlayerPool.instance.getEffectPlayer(GlobalStaticResUrl.TaskGet, Game.scene, UIEffectList.instance.getRenderListByUILayerID(1), false);
                        _loc_3.y = 200;
                        _loc_3.play(PlayMode.ANIMATION_STOP_MODE);
                        break;
                    }
                    case btn9:
                    {
                        _loc_4 = new ActionVo();
                        _loc_4.reInit(2, 0, 0, 0, 0, false, false);
                        SText3DFactory.instance.createtext3D("金+200", ENumberTextColor.green0 * 10, RolePlayer.instance.bodyPlayer, _loc_4);
                        SText3DFactory.instance.createtext3D("装+30", ENumberTextColor.blue0, RolePlayer.instance.bodyPlayer, _loc_4);
                        SText3DFactory.instance.createtext3D("钻+40", ENumberTextColor.blue0, RolePlayer.instance.bodyPlayer, _loc_4);
                        break;
                    }
                    case btn10:
                    {
                        if (Game.scene.sceneScale == 1)
                        {
                            Game.scene.sceneScale = 0.8;
                            RolePlayer.instance.scaleX = 1.5;
                            RolePlayer.instance.scaleY = 1.5;
                            RolePlayer.instance.scaleZ = 1.5;
                            Game.scene.scrollRect = SceneRange.display;
                        }
                        else
                        {
                            Game.scene.sceneScale = 1;
                            RolePlayer.instance.scaleX = 1;
                            RolePlayer.instance.scaleY = 1;
                            RolePlayer.instance.scaleZ = 1;
                            Game.scene.scrollRect = SceneRange.display;
                        }
                        break;
                    }
                    case btn11:
                    {
                        if (btn11.label == "开启模糊")
                        {
                            btn11.label = "关闭模糊";
                            PostProcess.instance.enableBlueFilter(true);
                        }
                        else
                        {
                            btn11.label = "开启模糊";
                            PostProcess.instance.enableBlueFilter(false);
                        }
                        break;
                    }
                    case btn12:
                    {
                        if (btn12.label == "锁定选择")
                        {
                            btn12.label = "取消锁定";
                            Game.scene.viewTarget = ThingUtil.selectEntity as MovePlayer;
                        }
                        else
                        {
                            btn12.label = "锁定选择";
                            Game.scene.viewTarget = null;
                        }
                        break;
                    }
                    case btn13:
                    {
                        if (btn13.label == "移除自己")
                        {
                            btn13.label = "添加自己";
                            Game.scene.removeRole();
                        }
                        else
                        {
                            btn13.label = "移除自己";
                            Game.scene.addRole();
                        }
                        break;
                    }
                    case btn14:
                    {
                        LoaderManager.instance.delayCallCompleteTime = 500;
                        break;
                    }
                    case btn15:
                    {
                        GameController.scene.RoleSlowDown();
                        break;
                    }
                    case btn16:
                    {
                        clearMemory();
                        break;
                    }
                    case btn17:
                    {
                        Program3dManager.instance.checkToSaveProgram();
                        break;
                    }
                    default:
                    {
                        break;
                    }
                }
                return;
            }// end function
            ;
            var box:* = this.addLeftBox();
            btn1 = this.addButton("锁屏", box);
            btn2 = this.addButton("解除锁屏", box);
            btn3 = this.addButton("移动屏幕", box);
            btn4 = this.addButton("解除移动", box);
            btn5 = this.addButton("说话", box);
            btn6 = this.addButton("移除说话", box);
            btn1.addEventListener(MouseEvent.CLICK, onClickBtn);
            btn2.addEventListener(MouseEvent.CLICK, onClickBtn);
            btn3.addEventListener(MouseEvent.CLICK, onClickBtn);
            btn4.addEventListener(MouseEvent.CLICK, onClickBtn);
            btn5.addEventListener(MouseEvent.CLICK, onClickBtn);
            btn6.addEventListener(MouseEvent.CLICK, onClickBtn);
            box = this.addLeftBox();
            btn7 = this.addButton("抖屏", box);
            btn8 = this.addButton("剧情特效", box);
            btn9 = this.addButton("移除特效", box);
            btn10 = this.addButton("缩放屏幕", box);
            btn11 = this.addButton("开启模糊", box);
            btn12 = this.addButton("锁定选择", box);
            btn7.addEventListener(MouseEvent.CLICK, onClickBtn);
            btn8.addEventListener(MouseEvent.CLICK, onClickBtn);
            btn9.addEventListener(MouseEvent.CLICK, onClickBtn);
            btn10.addEventListener(MouseEvent.CLICK, onClickBtn);
            btn11.addEventListener(MouseEvent.CLICK, onClickBtn);
            btn12.addEventListener(MouseEvent.CLICK, onClickBtn);
            var id:int;
            box = this.addLeftBox();
            btn13 = this.addButton("移除自己", box);
            btn13.addEventListener(MouseEvent.CLICK, onClickBtn);
            btn14 = this.addButton("加载模拟", box);
            btn14.addEventListener(MouseEvent.CLICK, onClickBtn);
            btn15 = this.addButton("空中掉落", box);
            btn15.addEventListener(MouseEvent.CLICK, onClickBtn);
            btn16 = this.addButton("清理内存", box);
            btn16.addEventListener(MouseEvent.CLICK, onClickBtn);
            btn17 = this.addButton("检查3d", box);
            btn17.addEventListener(MouseEvent.CLICK, onClickBtn);
            return;
        }// end function

        private function clearMemory() : void
        {
            Game.scene.topMapLayer.clearMap();
            RolePlayer.instance.setPixlePoint(RolePlayer.instance.x2d, RolePlayer.instance.y2d);
            EffectPlayerPool.instance.disposeAll();
            return;
        }// end function

        private function roleFlyCompl() : void
        {
            return;
        }// end function

        private function addExp() : void
        {
            var textInput:GTextInput;
            var cb:GComboBox;
            var addBossHandler:Function;
            addBossHandler = function (event:MouseEvent) : void
            {
                GameRMI.instance.iTestPrx.addExperience_async(new AMI_ITest_addExperience(), new EEntityType(int(cb.selectedItem["type"])), int(textInput.text));
                return;
            }// end function
            ;
            var box:* = this.addRightBox();
            this.addTextFiled("加经验：", box, 80);
            textInput = this.addTextInput(box, 80);
            textInput.text = "1000";
            cb = UIFactory.gComboBox(100, 70, 80, 22);
            cb.editable = false;
            cb.addItem({label:"人物", type:1});
            cb.addItem({label:"宠物", type:4});
            box.addChild(cb);
            cb.drawNow();
            var btn:* = this.addButton("添加", box);
            btn.addEventListener(MouseEvent.CLICK, addBossHandler);
            return;
        }// end function

        private function addCopy() : void
        {
            var textInput:GTextInput;
            var enterCopyHandler:Function;
            var leaveCopy:Function;
            enterCopyHandler = function (event:MouseEvent) : void
            {
                var _loc_2:* = int(textInput.text);
                GameProxy.copy.enterCopy(_loc_2);
                return;
            }// end function
            ;
            leaveCopy = function (event:MouseEvent) : void
            {
                GameProxy.copy.leaveCopy();
                return;
            }// end function
            ;
            var box:* = this.addRightBox();
            var txt:* = this.addTextFiled("副本ID：", box, 80);
            textInput = this.addTextInput(box, 80);
            var btn:* = this.addButton("进入", box);
            btn.addEventListener(MouseEvent.CLICK, enterCopyHandler);
            var btn2:* = this.addButton("退出", box);
            btn2.addEventListener(MouseEvent.CLICK, leaveCopy);
            return;
        }// end function

        private function testSystemSetting() : void
        {
            var check:GCheckBox;
            var selectedChanged:Function;
            var isCD:GCheckBox;
            var cdChanged:Function;
            var showThreatHandler:Function;
            var clearSkillCd:Function;
            selectedChanged = function (event:Event) : void
            {
                ClientSetting.local.setIsDone(check.selected, IsDoneType.IsSkillDebug);
                return;
            }// end function
            ;
            cdChanged = function (event:Event) : void
            {
                ClientSetting.local.setIsDone(isCD.selected, IsDoneType.IsNotCD);
                return;
            }// end function
            ;
            showThreatHandler = function (event:MouseEvent) : void
            {
                if (GameController.skill.threatModule.isHide)
                {
                    GameController.skill.threatModule.show();
                }
                else
                {
                    GameController.skill.threatModule.hide();
                }
                return;
            }// end function
            ;
            clearSkillCd = function (event:MouseEvent) : void
            {
                Dispatcher.dispatchEvent(new DataEvent(EventName.SkillClearAllCD));
                return;
            }// end function
            ;
            var box:* = this.addRightBox();
            check = UIFactory.checkBox("Debug学习、升级技能", 0, 0, 150, 25, box);
            var isDone:* = ClientSetting.local.getIsDone(IsDoneType.IsSkillDebug);
            check.selected = isDone;
            check.addEventListener(Event.CHANGE, selectedChanged);
            isCD = UIFactory.checkBox("使用技能不CD", 0, 0, 150, 25, box);
            var isCDData:* = ClientSetting.local.getIsDone(IsDoneType.IsNotCD);
            isCD.selected = isCDData;
            isCD.addEventListener(Event.CHANGE, cdChanged);
            var btn:* = UIFactory.gButton("仇恨调试", 0, 0, 50, 22, box);
            btn.addEventListener(MouseEvent.CLICK, showThreatHandler);
            var btn2:* = UIFactory.gButton("清除技能cd", 0, 0, 100, 22, box);
            btn2.addEventListener(MouseEvent.CLICK, clearSkillCd);
            return;
        }// end function

        private function addFlyEffect() : void
        {
            var startFly5:Function;
            var startFly4:Function;
            var startFly2:Function;
            var startFly:Function;
            var startFly3:Function;
            startFly5 = function (event:MouseEvent) : void
            {
                new ChangeCareerModule().show();
                return;
            }// end function
            ;
            startFly4 = function (event:MouseEvent) : void
            {
                isPath = !isPath;
                return;
            }// end function
            ;
            startFly2 = function (event:MouseEvent) : void
            {
                AstarCache.instance.saveCurrentCut();
                return;
            }// end function
            ;
            startFly = function (event:MouseEvent) : void
            {
                var _loc_2:* = new MainCityBattleKOInfoPanel();
                _loc_2.show();
                _loc_2.updateFlagNum(3);
                _loc_2.updateLeftTime(700);
                var _loc_3:* = new MainCityBattleFinalInfoPanel();
                _loc_3.show();
                _loc_3.updateLeftTime(500);
                SkillEquipTargetModule.instance.show();
                return;
            }// end function
            ;
            startFly3 = function (event:MouseEvent) : void
            {
                AutoGuideCache.isNotAutoAI = true;
                return;
            }// end function
            ;
            var box:* = this.addRightBox();
            this.addTextFiled("XYYY：", box, 80);
            var textInput:* = this.addTextInput(box, 60);
            var textInput2:* = this.addTextInput(box, 20);
            textInput2.text = "1";
            var btn:* = this.addButton("开始", box, 60);
            var btn2:* = this.addButton("切割结果", box, 60);
            var btn3:* = this.addButton("不执行自动AI", box, 60);
            var btn4:* = this.addButton("走路", box, 60);
            var btn5:* = this.addButton("转职", box, 60);
            btn.addEventListener(MouseEvent.CLICK, startFly);
            btn2.addEventListener(MouseEvent.CLICK, startFly2);
            btn3.addEventListener(MouseEvent.CLICK, startFly3);
            btn4.addEventListener(MouseEvent.CLICK, startFly4);
            btn5.addEventListener(MouseEvent.CLICK, startFly5);
            return;
        }// end function

        private function addChangeSpeed() : void
        {
            var textInput2:GTextInput;
            var addSpeedHandler:Function;
            addSpeedHandler = function () : void
            {
                var _loc_1:* = Number(textInput2.text);
                Speed.SpeedUp = _loc_1;
                return;
            }// end function
            ;
            var box2:* = this.addRightBox();
            this.addTextFiled("速度增加：", box2, 80);
            textInput2 = this.addTextInput(box2, 100);
            textInput2.text = "1";
            var btn2:* = this.addButton("修改", box2);
            btn2.addEventListener(MouseEvent.CLICK, addSpeedHandler);
            return;
        }// end function

        private function addTestFont() : void
        {
            var _loc_2:TextField = null;
            var _loc_1:* = this.addRightBox();
            _loc_2 = UIFactory.gTextField("生命+++", 0, 0, 100, 22, _loc_1, GlobalStyle.textFormatPutong.setFont("华文行楷").setSize(19));
            _loc_2 = UIFactory.embedTextFiled("生命+++", 100, 0, 100, 22, _loc_1, GlobalStyle.textFormatPutong.setFont("base").setSize(19));
            _loc_2.text = "生命+++";
            _loc_2 = UIFactory.embedTextFiled("生命+++", 200, 0, 100, 22, _loc_1, GlobalStyle.textFormatPutong.setFont("base").setSize(19));
            _loc_2.antiAliasType = AntiAliasType.ADVANCED;
            _loc_2.sharpness = 100;
            _loc_2.gridFitType = GridFitType.SUBPIXEL;
            _loc_2.thickness = 100;
            _loc_2.text = "生命+++";
            return;
        }// end function

        private function addTestCameraAngle() : void
        {
            var textInput:GTextInput;
            var changeAngleHandler:Function;
            changeAngleHandler = function () : void
            {
                Scene3DUtil.cameraAngle = int(textInput.text);
                return;
            }// end function
            ;
            var box:* = this.addRightBox(1);
            this.addTextFiled("修改视角：", box, 80);
            textInput = this.addTextInput(box, 150);
            textInput.text = "40";
            var btn:* = this.addButton("修改视角", box);
            btn.addEventListener(MouseEvent.CLICK, changeAngleHandler);
            return;
        }// end function

        private function addSkill() : void
        {
            var textInput:GTextInput;
            var learnSkillHandler:Function;
            var textInput2:GTextInput;
            var upgradeSkillhandler:Function;
            learnSkillHandler = function () : void
            {
                var _loc_1:* = Cache.instance.skill.isDebugLearn;
                GameProxy.role.learnSkill(int(textInput.text), _loc_1);
                return;
            }// end function
            ;
            upgradeSkillhandler = function () : void
            {
                var _loc_1:* = Cache.instance.skill.isDebugLearn;
                GameProxy.role.upgradeSkill(int(textInput2.text), _loc_1);
                return;
            }// end function
            ;
            var box:* = this.addRightBox();
            this.addTextFiled("技能Id：", box, 80);
            textInput = this.addTextInput(box, 150);
            switch(Cache.instance.role.entityInfo.career)
            {
                case ECareer._ECareerWarrior:
                {
                    textInput.text = "10001001";
                    break;
                }
                case ECareer._ECareerArcher:
                {
                    textInput.text = "11001001";
                    break;
                }
                case ECareer._ECareerMage:
                {
                    textInput.text = "12001001";
                    break;
                }
                case ECareer._ECareerPriest:
                {
                    textInput.text = "13001001";
                    break;
                }
                default:
                {
                    break;
                }
            }
            var btn:* = this.addButton("学习技能", box);
            btn.addEventListener(MouseEvent.CLICK, learnSkillHandler);
            var box2:* = this.addRightBox();
            this.addTextFiled("技能Id：", box2, 80);
            textInput2 = this.addTextInput(box2, 100);
            textInput2.text = "10001001";
            var btn2:* = this.addButton("升级技能", box2);
            btn2.addEventListener(MouseEvent.CLICK, upgradeSkillhandler);
            return;
        }// end function

        private function addRelive() : void
        {
            var enterBtnHandler:Function;
            var reliveHandler:Function;
            var textInput2:GTextInput;
            var changeBtnHandler:Function;
            enterBtnHandler = function (event:MouseEvent) : void
            {
                GameRMI.instance.iCopy.enterGuildWar_async(new AMI_ICopy_enterGuildWar());
                return;
            }// end function
            ;
            reliveHandler = function () : void
            {
                GameRMI.instance.iMapPrx.revival_async(new AMI_IMap_revival(), ERevival._ERevivalPoint);
                return;
            }// end function
            ;
            changeBtnHandler = function (event:MouseEvent) : void
            {
                Cache.instance.role.roleEntityInfo.updateTestSpeed(int(textInput2.text));
                return;
            }// end function
            ;
            var box:* = this.addLeftBox();
            var btn:* = this.addButton("复活", box);
            btn.addEventListener(MouseEvent.CLICK, reliveHandler);
            var enterBtn:* = this.addButton("进入公会战", box, 80);
            enterBtn.addEventListener(MouseEvent.CLICK, enterBtnHandler);
            this.addTextFiled("移动速度：", box, 80);
            textInput2 = this.addTextInput(box, 100);
            var changeBtn:* = this.addButton("修改", box, 80);
            textInput2.text = "180";
            changeBtn.addEventListener(MouseEvent.CLICK, changeBtnHandler);
            return;
        }// end function

        private function addMapPass() : void
        {
            var textInput:GTextInput;
            var passHandler:Function;
            passHandler = function () : void
            {
                var _loc_1:* = int(textInput.text);
                GameRMI.instance.iTestPrx.passMap_async(new AMI_ITest_passMap(), _loc_1);
                return;
            }// end function
            ;
            var box:* = this.addLeftBox();
            this.addTextFiled("地图Id", box, 50);
            textInput = this.addTextInput(box, 60);
            var btn:* = this.addButton("传送", box);
            btn.addEventListener(MouseEvent.CLICK, passHandler);
            return;
        }// end function

        private function addStrenge() : void
        {
            var cb:GComboBox;
            var i:int;
            var level:TextInput;
            var isAll:GCheckBox;
            var addLevel:Function;
            var name:String;
            addLevel = function (event:MouseEvent) : void
            {
                GameRMI.instance.iTestPrx.setStrengthLevel_async(new AMI_ITest_setStrengthLevel(), parseInt(cb.selectedItem["type"]), parseInt(level.text), isAll.selected);
                return;
            }// end function
            ;
            var box:* = this.addLeftBox(1);
            this.addTextFiled("强化装备等级", box);
            cb = UIFactory.gComboBox(100, 70, 80, 22);
            cb.editable = false;
            while (i < 13)
            {
                
                name = GameDefConfig.instance.getEquipName(i);
                cb.addItem({label:name, type:i});
                i = (i + 1);
            }
            box.addChild(cb);
            cb.drawNow();
            this.addTextFiled("等级", box, 40);
            level = this.addTextInput(box, 30);
            level.text = "2";
            isAll = UIFactory.checkBox("全部强化", 0, 0, 70, 28, box);
            var btn:* = this.addButton("确定", box);
            btn.addEventListener(MouseEvent.CLICK, addLevel);
            return;
        }// end function

        private function addAdvanceSystem() : void
        {
            var cb:GComboBox;
            var level:TextInput;
            var isAll:GCheckBox;
            var addLevel:Function;
            addLevel = function (event:MouseEvent) : void
            {
                GameRMI.instance.iTestPrx.setAdvanceLevel_async(new AMI_ITest_setAdvanceLevel(), parseInt(cb.selectedItem["type"]), parseInt(level.text), isAll.selected);
                return;
            }// end function
            ;
            var box:* = this.addLeftBox(1);
            this.addTextFiled("进阶系统等级", box);
            cb = UIFactory.gComboBox(100, 70, 80, 22);
            cb.editable = false;
            cb.addItem({label:"坐骑", type:EAdvanceComponentType._EAdvanceComponentTypeMount});
            cb.addItem({label:"宠物", type:EAdvanceComponentType._EAdvanceComponentTypePet});
            cb.addItem({label:"神装", type:EAdvanceComponentType._EAdvanceComponentTypeClothes});
            cb.addItem({label:"神兵", type:EAdvanceComponentType._EAdvanceComponentTypeWeapon});
            cb.addItem({label:"圣翼", type:EAdvanceComponentType._EAdvanceComponentTypeWing});
            cb.addItem({label:"战魂", type:EAdvanceComponentType._EAdvanceComponentTypeFightSoul});
            cb.addItem({label:"神器", type:EAdvanceComponentType._EAdvanceComponentTypeFightMethod});
            cb.addItem({label:"战旗", type:EAdvanceComponentType._EAdvanceComponentTypeDragonSoul});
            cb.addItem({label:"圣书", type:EAdvanceComponentType._EAdvanceComponentTypeHolyBook});
            cb.addItem({label:"战盾", type:EAdvanceComponentType._EAdvanceComponentTypeWarShield});
            cb.addItem({label:"兽魂", type:EAdvanceComponentType._EAdvanceComponentTypeMonsterSoul});
            box.addChild(cb);
            cb.drawNow();
            this.addTextFiled("等级", box, 40);
            level = this.addTextInput(box, 30);
            level.text = "2";
            isAll = UIFactory.checkBox("全部进阶", 0, 0, 70, 28, box);
            var btn:* = this.addButton("确定", box);
            btn.addEventListener(MouseEvent.CLICK, addLevel);
            return;
        }// end function

        private function addMoney() : void
        {
            var cb:GComboBox;
            var type:int;
            var name:String;
            var i:int;
            var moneyAmount:TextInput;
            var addallMoneyHandler:Function;
            var addMoneyHandler:Function;
            addallMoneyHandler = function (event:MouseEvent) : void
            {
                var _loc_3:Object = null;
                var _loc_2:* = cb.dataProvider.toArray();
                for each (_loc_3 in _loc_2)
                {
                    
                    GameRMI.instance.iTestPrx.addMoney_async(new AMI_ITest_addMoney(), _loc_3.type, 500000);
                }
                return;
            }// end function
            ;
            addMoneyHandler = function (event:MouseEvent) : void
            {
                GameRMI.instance.iTestPrx.addMoney_async(new AMI_ITest_addMoney(), parseInt(cb.selectedItem["type"]), parseInt(moneyAmount.text));
                return;
            }// end function
            ;
            var box:* = this.addLeftBox();
            this.addTextFiled("加金钱：", box);
            cb = UIFactory.gComboBox(100, 70, 100, 22);
            cb.editable = false;
            var arr:* = AvatarModule.moneyTypeArr;
            while (i < arr.length)
            {
                
                type = arr[i];
                name = GameDefConfig.instance.getEPrictUnitName(type);
                cb.addItem({label:name, type:type});
                i = (i + 1);
            }
            box.addChild(cb);
            cb.drawNow();
            moneyAmount = this.addTextInput(box, 80);
            moneyAmount.text = "5000";
            var btn:* = this.addButton("确定", box);
            btn.addEventListener(MouseEvent.CLICK, addMoneyHandler);
            var allbtn:* = this.addButton("全加50万", box, 60);
            allbtn.addEventListener(MouseEvent.CLICK, addallMoneyHandler);
            return;
        }// end function

        private function addRecharge() : void
        {
            var moneyAmount:TextInput;
            var addMoneyHandler:Function;
            addMoneyHandler = function (event:MouseEvent) : void
            {
                GameRMI.instance.iTestPrx.rechargeGold_async(new AMI_ITest_rechargeGold(), parseInt(moneyAmount.text));
                return;
            }// end function
            ;
            var box:* = this.addLeftBox();
            this.addTextFiled("充值钻石 :", box);
            moneyAmount = this.addTextInput(box);
            moneyAmount.text = "5000";
            var btn:* = this.addButton("确定", box);
            btn.addEventListener(MouseEvent.CLICK, addMoneyHandler);
            return;
        }// end function

        private function addLevel() : void
        {
            var textInput:GTextInput;
            var cb:GComboBox;
            var passHandler:Function;
            var successUpDate:Function;
            passHandler = function () : void
            {
                var _loc_1:* = int(textInput.text);
                GameRMI.instance.iTestPrx.updateLevel_async(new AMI_ITest_updateLevel(successUpDate, null, _loc_1), new EEntityType(int(cb.selectedItem["type"])), _loc_1);
                return;
            }// end function
            ;
            successUpDate = function (param1:AMI_ITest_updateLevel) : void
            {
                Cache.instance.role.entityInfo.level = int(param1.userObject);
                return;
            }// end function
            ;
            var box:* = this.addLeftBox();
            this.addTextFiled("更新等级", box, 50);
            textInput = this.addTextInput(box, 60);
            textInput.text = "70";
            cb = UIFactory.gComboBox(100, 70, 80, 22);
            cb.editable = false;
            cb.addItem({label:"人物", type:1});
            cb.addItem({label:"宠物", type:4});
            box.addChild(cb);
            cb.drawNow();
            var btn:* = this.addButton("确定", box);
            btn.addEventListener(MouseEvent.CLICK, passHandler);
            return;
        }// end function

        private function addChangeMountTime() : void
        {
            var textInput:GTextInput;
            var date:Date;
            var textInput2:GTextInput;
            var setTime:Function;
            var openGuildCopy:Function;
            setTime = function (event:MouseEvent) : void
            {
                date = new Date(ClockManager.instance.nowDate.time + int(textInput.text) * 1000);
                GameRMI.instance.iTestPrx.setBlessEndDt_async(new AMI_ITest_setBlessEndDt(), 0, date);
                return;
            }// end function
            ;
            openGuildCopy = function (event:MouseEvent) : void
            {
                var _loc_2:* = int(textInput2.text);
                if (_loc_2 == 1)
                {
                    GameProxy.guild.openGuildDefenseCopy(_loc_2);
                }
                else if (_loc_2 == 2)
                {
                    GameProxy.guild.openGuildCopy(_loc_2);
                }
                return;
            }// end function
            ;
            var box:* = this.addLeftBox();
            textInput = this.addTextInput(box, 30);
            textInput.text = "1";
            this.addTextFiled("秒后过期", box, 60);
            var btn:* = this.addButton("确定", box);
            btn.addEventListener(MouseEvent.CLICK, setTime);
            this.addTextFiled("开启公会副本类型", box, 90);
            textInput2 = this.addTextInput(box, 40);
            textInput2.text = "1";
            var btn2:* = this.addButton("确定", box);
            btn2.addEventListener(MouseEvent.CLICK, openGuildCopy);
            return;
        }// end function

        private function addCamp() : void
        {
            var cb:GComboBox;
            var passHandler:Function;
            passHandler = function () : void
            {
                GameRMI.instance.iTestPrx.changeCamp_async(new AMI_ITest_changeCamp(), int(cb.selectedItem["type"]));
                return;
            }// end function
            ;
            var box:* = this.addLeftBox();
            this.addTextFiled("更新阵营", box, 50);
            cb = UIFactory.gComboBox(100, 70, 80, 22);
            cb.editable = false;
            cb.addItem({label:"仙", type:1});
            cb.addItem({label:"魔", type:2});
            cb.addItem({label:"妖", type:3});
            box.addChild(cb);
            cb.drawNow();
            var btn:* = this.addButton("确定", box);
            btn.addEventListener(MouseEvent.CLICK, passHandler);
            return;
        }// end function

        private function addPet() : void
        {
            var btn:Button;
            var getPetHandler:Function;
            var petHandler:Function;
            var hideHandler:Function;
            getPetHandler = function () : void
            {
                GameRMI.instance.iPetPrx.getPlayerPetInfo_async(new AMI_IPet_getPlayerPetInfo());
                return;
            }// end function
            ;
            petHandler = function () : void
            {
                GameRMI.instance.iPetPrx.setPetState_async(new AMI_IPet_setPetState(), "", new EPetState(EPetState._EPetStateActive));
                return;
            }// end function
            ;
            hideHandler = function () : void
            {
                GameRMI.instance.iPetPrx.setPetState_async(new AMI_IPet_setPetState(), "", new EPetState(EPetState._EPetStateIdle));
                return;
            }// end function
            ;
            var box:* = this.addLeftBox();
            btn = this.addButton("获取宠物", box);
            btn.addEventListener(MouseEvent.CLICK, getPetHandler);
            btn = this.addButton("出战宠物", box);
            btn.addEventListener(MouseEvent.CLICK, petHandler);
            btn = this.addButton("收起宠物", box);
            btn.addEventListener(MouseEvent.CLICK, hideHandler);
            return;
        }// end function

        private function addBuff() : void
        {
            var textInput:GTextInput;
            var changeBuffHandler:Function;
            var textInput1:GTextInput;
            var openFirstRecharge:Function;
            changeBuffHandler = function (event:MouseEvent) : void
            {
                GameRMI.instance.iTestPrx.addBuff_async(new AMI_ITest_addBuff(), int(textInput.text));
                return;
            }// end function
            ;
            openFirstRecharge = function (event:MouseEvent) : void
            {
                Dispatcher.dispatchEvent(new DataEvent(EventName.FirstRechargeWinOpen, int(textInput1.text)));
                return;
            }// end function
            ;
            var box:* = this.addRightBox();
            this.addTextFiled("buff", box);
            textInput = this.addTextInput(box, 80);
            textInput.text = "10010001";
            var btn:* = this.addButton("确定", box);
            btn.addEventListener(MouseEvent.CLICK, changeBuffHandler);
            this.addTextFiled("首充天数", box);
            textInput1 = this.addTextInput(box, 50);
            textInput1.text = "1";
            var btn1:* = this.addButton("打开", box);
            btn1.addEventListener(MouseEvent.CLICK, openFirstRecharge);
            return;
        }// end function

        private function addLife() : void
        {
            var box:GBox;
            var cb:GComboBox;
            var tg:GComboBox;
            var tg2:GComboBox;
            var textInput:GTextInput;
            var onChangeCb:Function;
            var changeBlood:Function;
            var changeBlood2:Function;
            var changeBlood3:Function;
            onChangeCb = function (event:Event) : void
            {
                var _loc_2:* = tg.selectedItem["type"];
                if (_loc_2 == 1)
                {
                    DisplayUtil.removeMe(tg2);
                    box.resetPosition2();
                }
                else
                {
                    box.addChildAt(tg2, 3);
                    updateTg2();
                    box.resetPosition2();
                }
                return;
            }// end function
            ;
            var updateTg2:* = function () : void
            {
                var _loc_1:int = 0;
                var _loc_2:SPet = null;
                tg2.removeAll();
                if (Cache.instance.pet.pets && Cache.instance.pet.pets.length)
                {
                    _loc_1 = 0;
                    while (_loc_1 < Cache.instance.pet.pets.length)
                    {
                        
                        _loc_2 = Cache.instance.pet.pets[_loc_1] as SPet;
                        tg2.addItem({label:_loc_2.publicPet.name, uid:_loc_2.publicPet.uid});
                        _loc_1++;
                    }
                }
                tg2.drawNow();
                return;
            }// end function
            ;
            changeBlood = function (event:MouseEvent) : void
            {
                var _loc_2:* = tg.selectedItem["type"];
                var _loc_3:String = "";
                if (_loc_2 == 4 && tg2.dataProvider.length)
                {
                    _loc_3 = tg2.selectedItem["uid"];
                }
                GameRMI.instance.iTestPrx.addLifeOrMana_async(new AMI_ITest_addLifeOrMana(), new EEntityType(parseInt(tg.selectedItem["type"])), parseInt(cb.selectedItem["type"]), int(textInput.text), _loc_3);
                return;
            }// end function
            ;
            changeBlood2 = function (event:MouseEvent) : void
            {
                var _loc_3:Object = null;
                var _loc_4:Object = null;
                var _loc_5:String = null;
                var _loc_6:int = 0;
                updateTg2();
                var _loc_2:* = tg2.dataProvider.toArray();
                for each (_loc_3 in _loc_2)
                {
                    
                    _loc_5 = _loc_3["uid"];
                    GameRMI.instance.iTestPrx.addLifeOrMana_async(new AMI_ITest_addLifeOrMana(), new EEntityType(4), 1, 10000000, _loc_5);
                }
                _loc_2 = cb.dataProvider.toArray();
                for each (_loc_4 in _loc_2)
                {
                    
                    _loc_6 = _loc_4.type;
                    GameRMI.instance.iTestPrx.addLifeOrMana_async(new AMI_ITest_addLifeOrMana(), new EEntityType(1), _loc_6, 10000000, "");
                }
                return;
            }// end function
            ;
            changeBlood3 = function (event:MouseEvent) : void
            {
                var _loc_2:* = -(Cache.instance.role.entityInfo.life - 1);
                var _loc_3:* = -(Cache.instance.role.entityInfo.mana - 1);
                GameRMI.instance.iTestPrx.addLifeOrMana_async(new AMI_ITest_addLifeOrMana(), new EEntityType(1), 1, _loc_2, "");
                GameRMI.instance.iTestPrx.addLifeOrMana_async(new AMI_ITest_addLifeOrMana(), new EEntityType(1), 2, _loc_3, "");
                return;
            }// end function
            ;
            box = this.addRightBox();
            this.addTextFiled("血量", box);
            cb = UIFactory.gComboBox(100, 70, 80, 22);
            cb.editable = false;
            cb.addItem({label:"血液", type:1});
            cb.addItem({label:"蓝", type:2});
            cb.addItem({label:"怒气", type:3});
            cb.addItem({label:"体力", type:4});
            box.addChild(cb);
            cb.drawNow();
            tg = UIFactory.gComboBox(150, 70, 80, 22);
            tg.editable = false;
            tg.addItem({label:"人物", type:1});
            tg.addItem({label:"宠物", type:4});
            box.addChild(tg);
            tg.addEventListener(Event.CHANGE, onChangeCb);
            tg.drawNow();
            tg2 = UIFactory.gComboBox(150, 70, 80, 22);
            tg2.editable = false;
            tg2.drawNow();
            textInput = this.addTextInput(box, 60);
            textInput.text = "10000";
            var btn:* = this.addButton("确定", box);
            btn.addEventListener(MouseEvent.CLICK, changeBlood);
            var btn2:* = this.addButton("满血满篮", box);
            btn2.addEventListener(MouseEvent.CLICK, changeBlood2);
            var btn3:* = this.addButton("减到1血", box);
            btn3.addEventListener(MouseEvent.CLICK, changeBlood3);
            return;
        }// end function

        private function addOnlineTime() : void
        {
            var textInput:GTextInput;
            var textInput2:GTextInput;
            var changeTimeHandler:Function;
            var changeTimeHandler2:Function;
            changeTimeHandler = function (event:MouseEvent) : void
            {
                GameRMI.instance.iTestPrx.updateOnlineTime_async(new AMI_ITest_updateOnlineTime(), int(textInput.text));
                return;
            }// end function
            ;
            changeTimeHandler2 = function (event:MouseEvent) : void
            {
                GameRMI.instance.iTestPrx.updateContinueLogin_async(new AMI_ITest_updateContinueLogin(), int(textInput2.text));
                return;
            }// end function
            ;
            var box:* = this.addRightBox();
            this.addTextFiled("在线时间(分钟)", box);
            textInput = this.addTextInput(box, 60);
            var btn:* = this.addButton("修改", box);
            btn.addEventListener(MouseEvent.CLICK, changeTimeHandler);
            this.addTextFiled("连续登录天数", box);
            textInput2 = this.addTextInput(box, 60);
            var btn2:* = this.addButton("修改", box);
            btn2.addEventListener(MouseEvent.CLICK, changeTimeHandler2);
            return;
        }// end function

        private function addShortcut() : void
        {
            var textInput:GTextInput;
            var textInput2:GTextInput;
            var changeTimeHandler:Function;
            changeTimeHandler = function (event:MouseEvent) : void
            {
                var _loc_2:* = int(textInput2.text);
                if (_loc_2 < 1 || _loc_2 > 20)
                {
                    return;
                }
                Cache.instance.shortcut.addShortCut(_loc_2, CDDataType.skillInfo, int(textInput.text));
                Cache.instance.shortcut.save();
                return;
            }// end function
            ;
            var box:* = this.addRightBox();
            this.addTextFiled("技能ID：", box);
            textInput = this.addTextInput(box, 100);
            this.addTextFiled("快捷键1-20", box);
            textInput2 = this.addTextInput(box, 60);
            var btn:* = this.addButton("添加", box);
            btn.addEventListener(MouseEvent.CLICK, changeTimeHandler);
            return;
        }// end function

        private function addMapJump() : void
        {
            var textInput:GTextInput;
            var textInput2:GTextInput;
            var jumpHandler:Function;
            jumpHandler = function () : void
            {
                var _loc_1:* = int(textInput.text);
                var _loc_2:* = int(textInput2.text);
                var _loc_3:* = new SPoint();
                _loc_3.x = _loc_1;
                _loc_3.y = _loc_2;
                GameProxy.sceneProxy.jumpPoint(_loc_3);
                return;
            }// end function
            ;
            var box:* = this.addLeftBox();
            this.addTextFiled("x", box, 20);
            textInput = this.addTextInput(box, 60);
            this.addTextFiled("y", box, 20);
            textInput2 = this.addTextInput(box, 60);
            var btn:* = this.addButton("跳跃", box);
            btn.addEventListener(MouseEvent.CLICK, jumpHandler);
            return;
        }// end function

        private function addClearBoss() : void
        {
            var textInput:GTextInput;
            var kill:Function;
            kill = function (event:MouseEvent) : void
            {
                GameRMI.instance.iTestPrx.clearBoss_async(new AMI_ITest_clearBoss(), int(textInput.text), new SEntityId());
                return;
            }// end function
            ;
            var box:* = this.addLeftBox();
            this.addTextFiled("负数清除所有怪", box, 90);
            textInput = this.addTextInput(box, 60);
            textInput.text = "-1";
            var btn:* = this.addButton("清除boss", box);
            btn.addEventListener(MouseEvent.CLICK, kill);
            return;
        }// end function

        private function addAccount() : void
        {
            var textInput:GTextInput;
            var textInput2:GTextInput;
            var getAccountHandler:Function;
            var getAccountSucc:Function;
            var modifyTodayOnlineTime:Function;
            getAccountHandler = function () : void
            {
                GameRMI.instance.iTestPrx.getPlayerCount_async(new AMI_ITest_getPlayerCount(getAccountSucc), textInput.text);
                return;
            }// end function
            ;
            getAccountSucc = function (param1:AMI_ITest_getPlayerCount, param2:String) : void
            {
                Alert.show(param2, null, Alert.OK);
                return;
            }// end function
            ;
            modifyTodayOnlineTime = function () : void
            {
                GameRMI.instance.iTestPrx.updateTodayOnlineTime_async(new AMI_ITest_updateTodayOnlineTime(), int(textInput2.text));
                return;
            }// end function
            ;
            var box:* = this.addRightBox(1);
            this.addTextFiled("玩家名字：", box, 80);
            textInput = this.addTextInput(box, 100);
            textInput.text = "";
            var btn1:* = this.addButton("获取账号", box);
            btn1.addEventListener(MouseEvent.CLICK, getAccountHandler);
            this.addTextFiled("今日在线时间:", box);
            textInput2 = this.addTextInput(box, 60);
            textInput2.text = "";
            var btn2:* = this.addButton("修改", box);
            btn2.addEventListener(MouseEvent.CLICK, modifyTodayOnlineTime);
            return;
        }// end function

        private function addEnterCrossMap() : void
        {
            var enterCrossMap:Function;
            enterCrossMap = function () : void
            {
                return;
            }// end function
            ;
            var box:* = this.addRightBox(1);
            this.addTextFiled("进入跨服副本", box, 80);
            var btn2:* = this.addButton("进入跨服", box);
            btn2.addEventListener(MouseEvent.CLICK, enterCrossMap);
            return;
        }// end function

        private function addFrameTest() : void
        {
            var showFrameMsg:Function;
            showFrameMsg = function () : void
            {
                Log.debugMsg(LogType.other, (FrameManager.flashFrame as FlashFrame).getDebugMsg());
                return;
            }// end function
            ;
            var box:* = this.addRightBox(1);
            var btn2:* = this.addButton("打印Frame信息", box, 100);
            btn2.addEventListener(MouseEvent.CLICK, showFrameMsg);
            return;
        }// end function

        private function addYanwu() : void
        {
            var showNationalDayAct:Function;
            var showWorShip:Function;
            var showUniqueBoss:Function;
            var showYanwu:Function;
            var showQQBlueXufei:Function;
            showNationalDayAct = function () : void
            {
                Dispatcher.dispatchEvent(new DataEvent(EventName.NationalDayActShow, 0));
                Dispatcher.dispatchEvent(new DataEvent(EventName.ClosedBetaGiftBagShow));
                return;
            }// end function
            ;
            showWorShip = function () : void
            {
                Dispatcher.dispatchEvent(new Event(EventName.WorshipShow));
                return;
            }// end function
            ;
            showUniqueBoss = function () : void
            {
                UniqueBossMainWin.instance.show();
                return;
            }// end function
            ;
            showYanwu = function () : void
            {
                Dispatcher.dispatchEvent(new Event(EventName.YanwuShow));
                return;
            }// end function
            ;
            showQQBlueXufei = function () : void
            {
                Dispatcher.dispatchEvent(new Event(EventName.PlatformQQBlueXufeiShow));
                return;
            }// end function
            ;
            var box:* = this.addRightBox(1);
            var btn1:* = this.addButton("国庆活动", box);
            btn1.addEventListener(MouseEvent.CLICK, showNationalDayAct);
            var btn3:* = this.addButton("崇拜界面", box);
            btn3.addEventListener(MouseEvent.CLICK, showWorShip);
            var btn4:* = this.addButton("唯一boss界面", box);
            btn4.addEventListener(MouseEvent.CLICK, showUniqueBoss);
            var btn5:* = this.addButton("王城演武", box);
            btn5.addEventListener(MouseEvent.CLICK, showYanwu);
            var btn6:* = this.addButton("蓝钻续费", box);
            btn6.addEventListener(MouseEvent.CLICK, showQQBlueXufei);
            return;
        }// end function

        private function addTowerChange() : void
        {
            var textInput1:GTextInput;
            var onClick:Function;
            var textInput2:GTextInput;
            var onClickChangeFrame:Function;
            onClick = function (event:MouseEvent) : void
            {
                GameRMI.instance.iTestPrx.enterTowerLevel_async(new AMI_ITest_enterTowerLevel(), int(textInput1.text));
                return;
            }// end function
            ;
            onClickChangeFrame = function (event:MouseEvent) : void
            {
                Global.instance.frameRate = int(textInput2.text);
                return;
            }// end function
            ;
            var box:* = this.addLeftBox(1);
            this.addTextFiled("爬塔副本跳层", box, 80);
            textInput1 = this.addTextInput(box, 60);
            textInput1.text = "";
            var btn2:* = this.addButton("跳层", box);
            btn2.addEventListener(MouseEvent.CLICK, onClick);
            textInput2 = this.addTextInput(box, 60);
            textInput2.text = "60";
            var btn1:* = this.addButton("修改帧频", box);
            btn1.addEventListener(MouseEvent.CLICK, onClickChangeFrame);
            return;
        }// end function

        private function addOpenOrClose3D() : void
        {
            var btn:Button;
            var onClick:Function;
            onClick = function (event:MouseEvent) : void
            {
                var _loc_2:* = btn.label == "关闭3D加载";
                btn.label = _loc_2 ? ("打开3D加载") : ("关闭3D加载");
                Global3D.loadResource = !_loc_2;
                return;
            }// end function
            ;
            var box:* = this.addLeftBox(1);
            btn = this.addButton("关闭3D加载", box, 100);
            btn.addEventListener(MouseEvent.CLICK, onClick);
            return;
        }// end function

        private function addBossAllotTest() : void
        {
            var btn1:Button;
            var btn2:Button;
            var btn3:Button;
            var onClick:Function;
            onClick = function (event:MouseEvent) : void
            {
                var j:int;
                var result:SGuildItemDiceResult;
                var e:* = event;
                var randomName:* = function () : String
                {
                    return "千百度" + MathUitl.random(1, 100);
                }// end function
                ;
                var rewardCodeList:Array;
                var info:* = new SGuildItemBetUpdateInfo();
                info.bossCode = 19060000;
                switch(e.target)
                {
                    case btn1:
                    {
                        info.status = 1;
                        info.myItemCodes = [];
                        break;
                    }
                    case btn2:
                    {
                        info.status = 1;
                        info.myItemCodes = [rewardCodeList[1], rewardCodeList[2]];
                        break;
                    }
                    case btn3:
                    {
                        info.status = 2;
                        info.myItemCodes = [rewardCodeList[1], rewardCodeList[2]];
                        break;
                    }
                    default:
                    {
                        break;
                    }
                }
                info.starDt = ClockManager.instance.nowDate;
                var applyInfo:* = new Dictionary();
                var k:int;
                while (k < rewardCodeList.length)
                {
                    
                    applyInfo[rewardCodeList[k]] = MathUitl.random(1, 30);
                    k = (k + 1);
                }
                info.applyInfo = applyInfo;
                var dicInfoArray:* = new Array();
                var i:int;
                while (i < rewardCodeList.length)
                {
                    
                    j;
                    while (j < 15)
                    {
                        
                        result = new SGuildItemDiceResult();
                        result.playerName = new activation.randomName();
                        result.playerId = MathUitl.random(10000, 20000);
                        result.dice = MathUitl.random(1, 100);
                        result.itemCode = rewardCodeList[i];
                        if ((i == 1 || i == 2) && j == 3)
                        {
                            result.playerName = Cache.instance.role.entityInfo.name;
                            result.playerId = Cache.instance.role.entityInfo.entityId.id;
                        }
                        dicInfoArray.push(result);
                        j = (j + 1);
                    }
                    i = (i + 1);
                }
                info.diceInfo = dicInfoArray;
                var msgBlock:* = new MessageBlock();
                var msgHead:* = new MessageHead();
                msgHead.command = EPublicCommand._ECmdPublicGuildItemBetUpdate;
                msgBlock.messageHead = msgHead;
                msgBlock.messageBase = info;
                BroadCastManager.instance.call(EPublicCommand._ECmdPublicGuildItemBetUpdate, msgBlock);
                return;
            }// end function
            ;
            var box:* = this.addLeftBox(1);
            btn1 = this.addButton("公会分配1", box, 100);
            btn1.addEventListener(MouseEvent.CLICK, onClick);
            btn2 = this.addButton("公会分配2", box, 100);
            btn2.addEventListener(MouseEvent.CLICK, onClick);
            btn3 = this.addButton("公会分配3", box, 100);
            btn3.addEventListener(MouseEvent.CLICK, onClick);
            return;
        }// end function

        private function addClearSpeaker() : void
        {
            var onClick:Function;
            onClick = function (event:MouseEvent) : void
            {
                MsgManager.removeSpeakByEntityId(Cache.instance.role.entityInfo.entityId);
                return;
            }// end function
            ;
            var box:* = this.addLeftBox(1);
            var btn1:* = this.addButton("清理大喇叭说话", box, 150);
            btn1.addEventListener(MouseEvent.CLICK, onClick);
            return;
        }// end function

        private function addLineOffNextDay() : void
        {
            var onClick:Function;
            onClick = function (event:MouseEvent) : void
            {
                GameRMI.instance.iTestPrx.nextDayCompensate_async(new AMI_ITest_nextDayCompensate());
                return;
            }// end function
            ;
            var box:* = this.addLeftBox(1);
            this.addTextFiled("取明天副本补偿", box, 80);
            var btn2:* = this.addButton("获得", box);
            btn2.addEventListener(MouseEvent.CLICK, onClick);
            return;
        }// end function

        private function addRightBox(param1:int = 0) : GBox
        {
            var _loc_2:* = new GBox();
            _loc_2.horizontalGap = 5;
            _loc_2.direction = GBoxDirection.HORIZONTAL;
            this._pageArray[param1]["sprite"].addChild(_loc_2);
            _loc_2.x = this._rightX;
            _loc_2.y = this._pageArray[param1]["rightY"] + this._baseY;
            this._pageArray[param1]["rightY"] = this._pageArray[param1]["rightY"] + 25;
            return _loc_2;
        }// end function

        private function addLeftBox(param1:int = 0) : GBox
        {
            var _loc_2:* = new GBox();
            _loc_2.horizontalGap = 5;
            _loc_2.direction = GBoxDirection.HORIZONTAL;
            _loc_2.x = this._leftX;
            _loc_2.y = this._pageArray[param1]["leftY"] + this._baseY;
            this._pageArray[param1]["sprite"].addChild(_loc_2);
            this._pageArray[param1]["leftY"] = this._pageArray[param1]["leftY"] + 25;
            return _loc_2;
        }// end function

    }
}
